package com.zhaojindong.aop;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
import org.springframework.context.annotation.EnableAspectJAutoProxy;

@Configuration
@ComponentScan
@EnableAspectJAutoProxy
public class MainConfig {

    @Bean
    public MathCalculation mathCalculation() {
        return new MathCalculation();
    }

    @Bean
    public LogAspects logAspects() {
        return new LogAspects();
    }

}
